package com.jblog.core.model.blog;

import com.jblog.core.model.BaseModel;
import com.jblog.core.model.common.Privacy;
import com.jblog.core.model.common.Status;

/**
 * Category.java
 */
public class Category extends BaseModel {

	private static final long serialVersionUID = 1L;

	private Integer sort;
	private String name;
	private String alias;
	private Status status;
	private Privacy privacy;
	private Long posts;
	
    public Category() {
        super();
    }

    public Category(Long id) {
        super(id);
    }

    public Category(String alias) {
        this.alias = alias;
    }

    public Category(Long id, Status status) {
        super(id);
        this.status = status;
    }

    public Integer getSort() {
		return sort;
	}

	public void setSort(Integer sort) {
		this.sort = sort;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getAlias() {
		return alias;
	}

	public void setAlias(String alias) {
		this.alias = alias;
	}

    public Status getStatus() {
		return status;
	}

	public void setStatus(Status status) {
		this.status = status;
	}

	public Privacy getPrivacy() {
        return privacy;
    }

    public void setPrivacy(Privacy privacy) {
        this.privacy = privacy;
    }

    public Long getPosts() {
        return posts;
    }

    @Override
    public String toString() {
        return "Category [name=" + name + ", alias=" + alias + ", id=" + getId() + "]";
    }
	
}